export PATH=/usr/local/mysql/bin:$PATH

sudo find / -name "libtinfo.so*" 2>/dev/null

sudo ln -s /usr/lib64/libtinfo.so.6 /usr/lib64/libtinfo.so.5

mysql -u root
ALTER USER 'root'@'localhost' IDENTIFIED BY 'ld1234';

CREATE DATABASE mydb
CHARACTER SET utf8mb4
COLLATE utf8mb4_general_ci;
# 切换数据库
use plic_db;
# 执行SQL文件
SOURCE /usr/gen_table.sql;
# 查询数据库表语句
show tables;
